package single;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 32309
 * Date: 2025-07-17
 * Time: 18:36
 */
public class Singleton_2 {
    private static Singleton_2 singleton2;
    private Singleton_2() {

    }
    public Singleton_2 getSingleton2() {
        if (singleton2 == null) {
            singleton2 = new Singleton_2();
            return singleton2;
        }
        return singleton2;
    }
}
